#include <myheader_c_plus.h>
using std::cout;
using std::endl;
class Base{
public:
    Base(){
        cout << "Base()" << endl;
    }

    Base(int base_pri)
    :_bace_pri(base_pri)
    {
        cout << "Base(int)" << endl;
    }

    ~Base(){
        cout << "~Base()" << endl;
    }


    void print(int i){
        cout << "base print" << endl;
    }
private:
    int _bace_pri;
};

class Drived : public Base{
public:
    Drived(){
        cout << "Drived" << endl;
    }
    Drived(int drived_pri)
    :_drived_pri(drived_pri)
    {
        cout << "Drived(int , int )" << endl;
    }

    ~Drived(){
        cout << "~Drived()" << endl;
    }

    void print(){
        cout << "drived print" << endl;
    }

private:
    int _drived_pri;
};
int main(int argc, char *argv[])
{

    Drived d(3);
    return 0;
}

